package com.mycompany.inventory.pojo;

import org.zkoss.bind.annotation.DependsOn;

public class Address {
	private String Id;
	private String address;
	private String city;
	private String national;
	private String remark;
	private String type;
	private String postalCode;
	

	public Address(String id, String address, String city, String national, String remark, String type) {
		setAddress(address);
		setCity(city);
		setNational(national);
		setRemark(remark);
		setType(type);
		setId(id);
	}

	public Address() {
		setAddress("");
		setCity("");
		setNational("");
		setRemark("");
		setType("");
		Id ="";
	}
	
	public void clear(){
		setAddress("");
		setCity("");
		setNational("");
		setRemark("");
		setType("");
		Id ="";
	}
	
	public void copyValue(Address add){
		setAddress(add.getAddress());
		setCity(add.getCity());
		setNational(add.getNational());
		setRemark(add.getRemark());
		setType(add.getType());
		setId(add.getId());
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String ad) {
		address = ad;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String ct) {
		city = ct;
	}

	public String getNational() {
		return national;
	}

	public void setNational(String na) {
		national = na;
	}
	
	public String getRemark() {
		return remark;
	}

	public void setRemark(String re) {
		remark = re;
	}
	
	public String getType() {
		return type;
	}

	public void setType(String ty) {
		type = ty;
	}

	@DependsOn({ "address", "city" , "national"})
	public String getFullAddress() {
		return getAddress() + " " + getCity() + " " + getNational();
	}

	public String getId() {
		return Id;
	}

	public void setId(String id) {
		Id = id;
	}
}
